<?php
namespace Home\Controller;
class TestController{
public function test(){
	
	$url = "http://data.ronmei.com:8888/Price?code=CL1712";
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL,$url);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
	curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
	curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
	$result = curl_exec($ch);
	curl_close ($ch);
	dump(json_decode($result)); 
	$newResult=json_decode($result);
	dump($newResult->Price);
}
}